package demo;

//Day07
public class Day06005 {
    public static void main(String[] args) {
        int[] arr = {19, 28, 37, 46, 50};
        int temp;
        for (int i = 0, j = arr.length-1; i < arr.length / 2; i++, j--) {
            temp= arr[i];
            arr[i]=arr[j];
            arr[j]=temp;
        }
        for(int i=0;i<arr.length;i++)
            System.out.print(arr[i]+" ");
    }
}
